﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;
using DC2010.Objects.Base;

namespace DC2010.Objects.Structures
{
    [Serializable]
    public class SpriteInfo : BaseInfo
    {
        /// <summary>
        /// Delay between frames
        /// </summary>
        [XmlAttribute]
        public double Delay { get; set; }

        /// <summary>
        /// In case of annimation picture. Tells us width of one tile.
        /// </summary>
        [XmlAttribute]
        public int TileWidth { get; set; }

        /// <summary>
        /// In case of annimation picture. Tells us height of one tile.
        /// </summary>
        [XmlAttribute]
        public int TileHeight { get; set; }

        /// <summary>
        /// It is actually performing animation?
        /// </summary>
        public bool IsAnimated { get; set; }

        /// <summary>
        /// Path to gfx.
        /// </summary>
        public string Path { get; set; }

    }
}
